﻿
namespace LS.Nc6.Application.Cms
{
    /// <summary>
    /// 内容标签
    /// </summary>
    public class CmsContentTagService : BaseService<CmsContentTagEntity>, ICmsContentTagService, ITransient
    {
        public async Task<int> InsertList(List<CmsContentTagEntity> list)
        {
            return await DbContext.Instance.Insertable(list).ExecuteCommandAsync();
        }

        public async Task<List<string>> GetTagNames()
        {
            return await DbContext.Instance.Queryable<CmsContentTagEntity>().Select(a=>a.TagName).ToListAsync();
        }
    }
}
